package homework;

import java.util.Random;

import org.junit.Test;

public class sjdi {

	@Test
	public void test() {
		int[] array = new int[4];
		Random rand = new Random();

		for (int j = 0; j < array.length; j++) {
			int number = rand.nextInt(10);
			if (j == 0) {
				array[0] = number;
			} else {
				for (int i = 0; i < j; i++) {
					if (number != array[i]) {
						array[j] = number;
					}
				}
			}
		}
		for (int i : array) {
			System.out.print(i+" ");
		}
	}


	}


